package cn.tedu.zx.court.adapter.mapper;


import cn.tedu.zx.pojo.court.entity.Category;
import cn.tedu.zx.pojo.court.vo.CategoryDefaultVo;
import cn.tedu.zx.pojo.court.vo.CategoryDetailsVo;
import cn.tedu.zx.pojo.court.vo.CategoryIdNameList;
import cn.tedu.zx.pojo.court.vo.CategoryListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
/*继承BaseMapper后可以通过注解使用baseMapper中准备好的增删改查方法*/
public interface CategoryMapper extends BaseMapper<Category> {
    List<CategoryListVo> list();

    CategoryDetailsVo selectDetailsById(Long id);

    List<CategoryDefaultVo> selectDefault();

    List<CategoryIdNameList> getIdAndName(Long id);

    List<CategoryIdNameList> getFrontIdAndName();
}
